<?php
/**
 * Helper functions
 */

// quote sql string
function quote_sql($var)
{
	$ret = ' \'' . mysql_real_escape_string($var) . '\' ';
	return($ret);
}


/**
 * External stat
 */
function ext_stat()
{
	// gostats
	$ret .= '
		<!-- GoStats JavaScript Based Code -->
		<script type="text/javascript" src="http://gostats.com/js/counter.js"></script>
		<script type="text/javascript">_gos=\'c5.gostats.com\';_goa=1038900;
		_got=5;_goi=1;_gol=\'advanced web statistics\';_GoStatsRun();</script>
		<noscript><a target="_blank" title="advanced web statistics"
		href="http://gostats.com"><img alt="advanced web statistics"
		src="http://c5.gostats.com/bin/count/a_1038900/t_5/i_1/counter.png"
		style="border-width:0" /></a></noscript>
		<!-- End GoStats JavaScript Based Code -->
		';
	return($ret);
}